package com.example.demo99.Entity;

import java.math.BigDecimal;
//代表一个订单里面有多个商品
public class OrderItem {
    private Product product;
    private Integer quantity;

    private BigDecimal price;     // 商品价格，新增

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }
}
